<?php

class Settings {
  function Settings()
  {
    
  }
  
  function __construct()
  {
    
  }
  
  function get($name)
  {
    $CI =& get_instance();
    $CI->load->model('Setting');
    $setting = $CI->Setting->get_by_id($name);
    return $setting ? $setting['value'] : FALSE;
  }
}